﻿using UnityEngine;

namespace Core
{
    public class MoveState : BaseState
    {
        private int move = Animator.StringToHash("move");
        private Animator animator;
        public MoveState(Unit unit)
        {
            this.animator = unit.Animator;
        }

        public override void Enter()
        {
            animator.SetBool(move, true);
        }
        public override void Exit()
        {
            animator.SetBool(move, false);
        }
    }
}